/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data;
import java.sql.Connection;
import java.sql.Statement;
/**
 *
 * @author NS
 */
public class Profile_Drop {
    private Connection conn;
    public Profile_Drop(Connection conn){
        this.conn = conn;
    }
    public String drop(String name){
        Statement stmt;
        try{
            stmt = conn.createStatement();
            System.out.println("DROP PROFILE " + name);
            stmt.executeUpdate("DROP PROFILE " + name);
            return "success";
        }catch(Exception e){
            return e.getMessage();
        }
    }
        
}
